<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景位置-方位名词</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            background: pink;
            background-image: url(images/logo.png);
            background-repeat: no-repeat;
            /* background-position: center top; */
            background-position: center right;
            /* 前后位置可以交换 */
            /* 省略一个参数，居中 */

        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>